home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re ODF Popups.3 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     RE: ODF Popups
  2. Sent:        6/24/96 12:26 AM
  3. Received:    6/24/96 8:24 AM
  4. From:        Leo Hagebeek, as-plus@abecon.nl
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Laurant,
  9. Thanks for your clues. But unfortunately it's not the solution. I did have a
  10. MENU resource available! When I compared the ODF-sample Forms with my resource
  11. I noticed that the only difference was the font. I want to display the popup
  12. in GENEVA 9. The sample uses the system font. In FWContrH.cpp the procId is
  13. raised with kControlUsesOwningWindowsFontVariant. I was unable to find this
  14. constant, but I figure that it's popupUseWFont as described in Inside
  15. Macintosh. This means that the font of the owning window is used. Where is it
  16. defined in ODF? In my resource there is only a position of the superview.
  17.  
  18. Leo Hagebeek
  19. AS-PLUS B.V.
  20. Naarden, The Netherlands
  21. E-mail: as-plus@abecon.nl
  22. _______________________________________________________________________________
  23. From: ODF-Interest@CILabs.ORG on woe, 12 jun 1996 19:14
  24. Subject: Re: ODF Popups
  25. To: OpenDoc Development Framework Discussion List
  26.  
  27. >My resource looks like this:
  28. >
  29. >FW_RPopupMenu
  30. >(
  31. >  krInitialFont, // identifier
  32. >  { FW_FIX()...FW_FIX() }, // coordinates
  33. >  FW_kFixedBounds,
  34. >  FW_kPopupClickedMsg,
  35. >  FW_kFrameReceiver,
  36. >  0,
  37. >  krInitialMenu, // resource id
  38. >  0,
  39. >  1,
  40. >  4, // popupUseAddResMenu
  41. >  'FONT',
  42. >  GENEVA9, // font
  43. >  ""
  44. >)
  45. >
  46. >I want my popup to show all FONT's in my system. According to the 
  47. >comments in the ODF files and from what I know from Inside Macintosh  
  48. >this should work. But it doesn't. With this resource there is no popup 
  49. >at all in my view.
  50.  
  51. Your problem may come from the fact that you haven't defined a MENU
  52. resource with the id "krInitialMenu" in your part.  I just tried to
  53. modify ODF Form's Views.fr, putting 4 and 'FONT' in the first popup
  54. menu resource (kBrowseTimePopupID), and it does show the list of
  55. fonts in addition to the 4 menu items of MENU #1000.  
  56. So you must define at least an empty MENU resource otherwise the
  57. control manager doesn't create the popup.
  58.